﻿
function addEventListener1(dotnetHelper, eventName) {
    window.addEventListener(eventName, function (e)
    {
        dotnetHelper.invokeMethodAsync('CallbackBeforeUnload');
    });
}

function removeEventListener1(dotnetHelper, eventName) {
    window.removeEventListener(eventName, function (e) {

    });
}